package com.smedi.ismedi.cronjob.core.infrastructure.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "job_run")
public class JobRunEntity extends BasicFieldEntity implements Serializable {
    @TableField(value = "job_id")
    private Long jobId;

    @TableField(value = "status")
    private String status;

    @TableField(value = "log")
    private String log;

    @TableField(value = "result")
    private String result;

    @TableField(value = "started_time")
    private LocalDateTime startedTime;

    @TableField(value = "ended_time")
    private LocalDateTime endedTime;
}
